package jdbc;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

import entity.User;

public class Test {
	static DBUtil DB = null;
	static Connection con = DB.getconnection();
	static PreparedStatement ps=null;
	static ResultSet rs=null;
	public static void main(String[] args){
		
		
			String s="456";
			String sql ="insert into test(usrname,usrpassword) values('"+s+"','123')";
			try {
				ps=con.prepareStatement(sql);
				ps.executeUpdate();
			} catch (SQLException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
	}	
	}
	
}
